package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.shopping.model.ShoppingGetSubOrderListGoods;
/**
* 每次进入拆单页面，都获取拆单后的数据，对于“已生成订单”点击按钮跳转到订单详情
* @author wliu
* edit tse
*/
public class ShoppingGetSubOrderList extends RudderResponse{

private String orderId = "";


private List<ShoppingGetSubOrderListGoods> goods = new ArrayList<ShoppingGetSubOrderListGoods>();


private String wareName = "";


private String subTax = "";


private String subTotal = "";


private String beforeTax = "";


private String afterTax = "";


private String status = "";


private String revOrderId = "";


/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}

/**
* @return orderId
*/
public void setOrderId(String orderId) {
this.orderId = orderId;
}
/**
methodName    OrderId
type          String
name          orderId
defaultType   ""
*/

/**
* @return goods
*/
public List<ShoppingGetSubOrderListGoods> getGoods() {
return this.goods;
}

/**
* @return goods
*/
public void setGoods(List<ShoppingGetSubOrderListGoods> goods) {
this.goods = goods;
}
/**
methodName    Goods
type          List<ShoppingGetSubOrderListGoods>
name          goods
defaultType   new ArrayList<ShoppingGetSubOrderListGoods>()
*/

/**
* @return wareName
*/
public String getWareName() {
return this.wareName;
}

/**
* @return wareName
*/
public void setWareName(String wareName) {
this.wareName = wareName;
}
/**
methodName    WareName
type          String
name          wareName
defaultType   ""
*/

/**
* @return subTax
*/
public String getSubTax() {
return this.subTax;
}

/**
* @return subTax
*/
public void setSubTax(String subTax) {
this.subTax = subTax;
}
/**
methodName    SubTax
type          String
name          subTax
defaultType   ""
*/

/**
* @return subTotal
*/
public String getSubTotal() {
return this.subTotal;
}

/**
* @return subTotal
*/
public void setSubTotal(String subTotal) {
this.subTotal = subTotal;
}
/**
methodName    SubTotal
type          String
name          subTotal
defaultType   ""
*/

/**
* @return beforeTax
*/
public String getBeforeTax() {
return this.beforeTax;
}

/**
* @return beforeTax
*/
public void setBeforeTax(String beforeTax) {
this.beforeTax = beforeTax;
}
/**
methodName    BeforeTax
type          String
name          beforeTax
defaultType   ""
*/

/**
* @return afterTax
*/
public String getAfterTax() {
return this.afterTax;
}

/**
* @return afterTax
*/
public void setAfterTax(String afterTax) {
this.afterTax = afterTax;
}
/**
methodName    AfterTax
type          String
name          afterTax
defaultType   ""
*/

/**
* @return status
*/
public String getStatus() {
return this.status;
}

/**
* @return status
*/
public void setStatus(String status) {
this.status = status;
}
/**
methodName    Status
type          String
name          status
defaultType   ""
*/

/**
* @return revOrderId
*/
public String getRevOrderId() {
return this.revOrderId;
}

/**
* @return revOrderId
*/
public void setRevOrderId(String revOrderId) {
this.revOrderId = revOrderId;
}
/**
methodName    RevOrderId
type          String
name          revOrderId
defaultType   ""
*/

/**


    private static void filterFor(ShoppingGetSubOrderListGoods shopping) {
        if (shopping.getProductId() == null) {
            shopping.setProductId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getQuantity() == null) {
            shopping.setQuantity("");
        }
        if (shopping.getThumbnailPic() == null) {
            shopping.setThumbnailPic("");
        }
        if (shopping.getSubTotal() == null) {
            shopping.setSubTotal("");
        }
        if (shopping.getSpec() == null) {
            shopping.setSpec("");
        }
    }

    public static void filter(ShoppingGetSubOrderList shopping) {
        if (shopping.getOrderId() == null) {
            shopping.setOrderId("");
        }
        if (shopping.getGoods() == null) {
            shopping.setGoods(new ArrayList<ShoppingGetSubOrderListGoods>());
        } else {
            for (ShoppingGetSubOrderListGoods item : shopping.getGoods()) {
                filterFor(item);
            }
        }
        if (shopping.getWareName() == null) {
            shopping.setWareName("");
        }
        if (shopping.getSubTax() == null) {
            shopping.setSubTax("");
        }
        if (shopping.getSubTotal() == null) {
            shopping.setSubTotal("");
        }
        if (shopping.getBeforeTax() == null) {
            shopping.setBeforeTax("");
        }
        if (shopping.getAfterTax() == null) {
            shopping.setAfterTax("");
        }
        if (shopping.getStatus() == null) {
            shopping.setStatus("");
        }
        if (shopping.getRevOrderId() == null) {
            shopping.setRevOrderId("");
        }
    }

*/

}
